// pages/funcs/corp.js
const App = getApp()

Page({
  data: {
    init: false,
    advs: [],
  },
  onLoad() {
    this.execLoad()
  },
  execLoad() {
    App.doPost({
      uri: '/app/base/data/adv',
      body: {
        advp: 'BSVC_INNER',
        size: 100
      },
      fnSucc: resp => {
        this.setData({
          init: true,
          advs: resp.data.items
        })
      }
    })
  },
  toWebPage(e) {
    let uri = e.currentTarget.dataset.url
    wx.navigateTo({
      url: `/pages/funcs/web?url=${encodeURIComponent(uri)}`,
    })
  }
})